package com.lzj.dao;

import com.lzj.entity.Employee;
import com.lzj.entity.Meeting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2022/3/1
 */
public interface MeetingMapper {
    int addMeeting(Meeting meeting);//添加预定会议室
    int addParticipants(@Param("meetingid") int meetingid, @Param("mps") int[] mps);//添加会议参会
    Long getTotal(@Param("meeting") Meeting meeting,@Param("empIds") List<Integer> empsIdByDepName,@Param("mrIds") List<Integer> mrIdByName);//获取记录
    List<Meeting> getAllMeeting(@Param("meeting") Meeting meeting,@Param("empIds") List<Integer> empsIdByDepName,@Param("mrIds") List<Integer> mrIdByName,@Param("page") int page,@Param("pageSize") int pageSize);//分页查询
    Meeting getMeetingById(@Param("meetingid") int meetingid);//查询id获取会议的信息
    List<Meeting> getMybookings(@Param("reservationistid") int reservationistid,@Param("status") String status);//meetingroom和meeting通过连表id查找取消或者未取消的的会议
    int updateMeetingStatusById(@Param("meeting") Meeting meeting,@Param("canceledtime") Date canceledtime, @Param("status") String status);//修改会议状态
    List<Meeting> getMeetingByMtIdAndSta(@Param("meetingids") List<Integer> meetingByEmpId,@Param("employeeid") int employeeid,@Param("status") String status);
}
